<?php

namespace common\models\user;

use common\behaviors\MerchantBehavior;


/**
 * This is the model class for table "{{%oauth_client}}".
 *
 * @property string $id
 * @property string $title 标题
 * @property string $client_id
 * @property string $client_secret
 * @property string $redirect_uri 回调Url
 * @property string $remark 备注
 * @property string $group 组别
 * @property int $status 状态[-1:删除;0:禁用;1启用]
 * @property string $created_at 创建时间
 * @property string $updated_at 修改时间
 */
class Member extends \common\models\base\BaseModel
{
    //use MerchantBehavior;

    public $address;
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%by_member}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
//            [['client_id'], 'unique'],
            [[  'member_name',//会员用户名
                'member_nickname',//会员昵称
                'member_auth_state',//实名认证状态
                'member_avatar',//会员头像
                'member_mobile',//会员手机号码
                'member_points',//会员积分
                'available_predeposit',//会员预存款 可用金额
                'address',//地址
            ], 'safe'],
            [[ 'status', 'created_at', 'updated_at'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'member_name'=>'会员用户名',
            'member_nickname'=>'会员昵称',
            'member_auth_state'=>'是否是回收员',
            'member_avatar'=>'会员头像',
            'member_mobile'=>'会员手机号码',
            'member_points'=>'会员积分',
            'available_predeposit'=>'余额',
            'address'=>'经纬度',
            'status' => '状态',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }



}
